/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.service.impl;

import java.util.List;

import com.sasis.service.impl.BaseManager;
import com.sasis.model.FlightInfo;
import com.sasis.dao.FlightInfoDao;
import com.sasis.service.FlightInfoManager;

import com.sasis.util.PageList;
import com.sasis.util.PageRequest;

public class FlightInfoManagerImpl extends BaseManager implements FlightInfoManager {
    private FlightInfoDao dao;

    /**
     * Set the Dao for communication with the data layer.
     * @param dao
     */
    public void setFlightInfoDao(FlightInfoDao dao) {
        this.dao = dao;
    }

    /**
     * @see com.sasis.service.FlightInfoManager#getFlightInfos(com.sasis.model.FlightInfo)
     */
    public List getFlightInfos(final FlightInfo flightInfo) {
        return dao.getFlightInfos(flightInfo);
    }

    /**
     * @see com.sasis.service.FlightInfoManager#getFlightInfo(String id)
     */
    public FlightInfo getFlightInfo(final String id) {
        return dao.getFlightInfo(new Integer(id));
    }
    
    public FlightInfo getFlightInfo(final FlightInfo flightInfo) {
        return dao.getFlightInfo(flightInfo);
    }

    /**
     * @see com.sasis.service.FlightInfoManager#saveFlightInfo(FlightInfo flightInfo)
     */
    public void saveFlightInfo(FlightInfo flightInfo) {
        dao.saveFlightInfo(flightInfo);
    }

    /**
     * @see com.sasis.service.FlightInfoManager#removeFlightInfo(String id)
     */
    public void removeFlightInfo(FlightInfo flightInfo) {
        dao.removeFlightInfo( flightInfo);
    }
    public PageList queryForPageList(String listStatementId,  
    		Object parameterObject, PageRequest pageRequest){
	return dao.queryForPageList(listStatementId,   parameterObject, pageRequest);
    }
}
